{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_gjw/template/public/ygcsslist.css">
<ul class="nav nav-tabs">    
    <li class="active"><a href="{php echo $this->createWebUrl('usergrade')}">用户评级管理</a></li>
    <li><a href="{php echo $this->createWebUrl('addusergrade')}">添加/编辑用户评级</a></li>
</ul>
<div class="main">
    <!-- 门店列表部分开始 -->
    <div class="panel panel-default">
        <div class="panel-heading">
          用户评级列表
        </div>
        <div class="panel-body" style="padding: 0px 15px;">
            <div class="row">
                <table class="yg5_tabel col-md-12">
                    <tr class="yg5_tr1">
                        <td class="store_td1 col-md-1">顺序</td>
                        <td class="col-md-2">评级名称</td>
                        <td class="col-md-2">评级消费金额</td>
                          
                        <td class="col-md-3">操作</td>
                    </tr>
                    {loop $list $key $item}
                    <tr class="yg5_tr2">
                        <td><div>{$item['orderby']}</div></td>
                        <td>
                           {$item['name']}
                       </td>

                       <td>{$item['money']}</td>

                       <td>
                          <a href="{php echo $this->createWebUrl('addusergrade', array('id' => $item['id']))}" class="storespan btn btn-xs">
                            <span class="fa fa-pencil"></span>
                            <span class="bianji">编辑
                                <span class="arrowdown"></span>
                            </span>                            
                        </a>
                        <a href="{php echo $this->createWebUrl('usergrade', array('id' => $item['id']))}" class="storespan btn btn-xs">
                            <span class="fa fa-trash-o"></span>
                            <span class="bianji">删除
                                <span class="arrowdown"></span>
                            </span>                           
                        </a>
                    </td>
                </tr>
                {/loop}
                {if empty($list)}
                <tr class="yg5_tr2">
                  <td colspan="12">
                    暂无等级信息
                </td>
            </tr>
            {/if}
        </table>
    </div>
</div>
</div>
{$pager}
</div>
<script type="text/javascript">
    $(function(){
        $("#frame-14").show();
        $("#yframe-14").addClass("wyactive");
    })
</script>